-
Notifications
You must be signed in to change notification settings - Fork 403
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deprecatre ZClient.request method #3154
base: main
Are you sure you want to change the base?
Conversation
client <- ZIO.serviceWith[Client](_.batched) | ||
chunk <- client.request(request).flatMap(_.body.asChunk) | ||
} yield FormField.binaryField(name, chunk, mediaType) | ||
@nowarn("cat=deprecation") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@987Nabil Any suggestions here?
I have supplied Scope explicitly with Client with Scope' and also tried wrapping up req in
ZIO.scoped` by using streaming/batched appropriately wherever needed but it throwing compile error of not providing Scope.
URL(Path.empty, Location.Absolute(Scheme.HTTP, "localhost", Some(port))), | ||
) | ||
.batched @@ ZClientAspect.followRedirects(2)((resp, message) => ZIO.logInfo(message).as(resp)) | ||
response <- client.request(Request.get(URL.empty / "redirect")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.
a61c8dc
to
279af33
Compare
@987Nabil Any suggestions? |
279af33
to
3775973
Compare
/claim #3133
fixes #3133